import React, {Component} from 'react';
import 'whatwg-fetch';
import './style.scss';

export default class Daka extends Component {
  constructor(props) {
    super(props);
    const that = this;
    that.state = {

    }
  }

  componentDidMount() {
    const that = this;
    fetch('/api/345', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      credentials: 'include'
    }).then((response)=>{
      return response.json();
    }).then((data)=>{
      console.log('data', data)
    })
  }

  render() {
    const that = this;
    return (
      <div className='test'></div>
    );
  };
}